#region Using

using System;
using BlogEngine.Core.StorageProviders;

#endregion

namespace BlogEngine.Core
{
    /// <summary>
    /// A video is a type of media file
    /// </summary>
    [Serializable]
    public class Video : MediaBase<Video> 
    {
        #region Constructor

        /// <summary>
        /// The default constructor assign default values.
        /// </summary>
        public Video() :base(MediaType.Video)
        {
        }

        #endregion

        protected override string RelativeLinkPrefix()
        {
            return "video/";
        }

        protected override string PermaLinkPrefix()
        {
            return "video";
        }

        /// <summary>
        /// Retrieves a page from the BlogProvider
        /// based on the specified id.
        /// </summary>
        protected override Video DataSelect(Guid id)
        {
//            return BlogService.SelectVideo(id);
            return new Video();
        }

        /// <summary>
        /// Updates the object in its data store.
        /// </summary>
        protected override void DataUpdate()
        {
 //           BlogService.UpdateVideo(this);
        }
        /// <summary>
        /// Inserts a new page to current BlogProvider.
        /// </summary>
        protected override void DataInsert()
        {
//            BlogService.InsertVideo(this);
        }
        /// <summary>
        /// Deletes the page from the current BlogProvider.
        /// </summary>
        protected override void DataDelete()
        {
//            BlogService.DeleteVideo(this);
        }
    }
}

